<template>
  <div id="app">
    <div class="page">
      <myheader></myheader>
      <transition name="fade" mode="out-in">
        <router-view></router-view>
      </transition>
    </div>
    <myfooter></myfooter>
  </div>
</template>

<script>
  import myheader from '@/components/common/myheader'
  import myfooter from '@/components/common/myfooter'
  export default {
    name: 'app',
    components: {
      myheader,
      myfooter
    }
  }
</script>

<style>
#app {
  font-family: 'Microsoft YaHei';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity .3s
}

.fade-enter,
.fade-leave-to {
  opacity: 0
}
</style>
